package com.ctshk.rpc.booking.req.system.admission.add;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 系统内门票信息详情
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-25
 */
@Data


@ApiModel(value="SupplierSystemOrderAdmissionTicketDetailReq对象", description="系统内门票信息详情")
public class SupplierSystemOrderAdmissionTicketDetailAddReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属订单ID")
    private Long orderId;

    @ApiModelProperty(value = "基础信息表id")
    private Long airExpressInfoId;

    @NotBlank(message ="门票名称不能为空")
    @ApiModelProperty(value = "门票名称")
    private String ticketTypeName;

    @NotNull(message = "单价不能为空")
    @Min(value = 0, message = "单价不能小于0")
    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @NotNull(message = "单价不能为空")
    @Min(value = 0, message = "单价不能小于0")
    @ApiModelProperty(value = "数量")
    private Integer number;

    @NotBlank(message ="旅客json不能为空")
    @ApiModelProperty(value = "旅客json,格式：{\"touristType\":\"成人\",\"touristTitle\":\"先生\",\"touristName\":\"Bruce Lee\"}")
    private String passengerJson;


}
